package com.icangya.DAO;

import com.icangya.domain.CommissionRecord;

import java.util.List;

public interface ICommissionRecordDAO  extends  IBaseDAO<CommissionRecord>{

    /**
     *获取用户的佣金记录
     * @param openId
     * @return
     */
    List getCommissionRecordByOpenId(String openId);

    /**
     * 获取用户某一佣金类型的记录
     * @param openId
     * @param commissionType
     * @return
     */
    List getCommRecordByOpenIdOrCommType(String openId,String commissionType);

    /**
     * 获取用户某一佣金类型的记录
     * @param userid
     * @param commissionTypec
     * @return
     */
    List getCommRecordByOpenIdOrCommTypec(long userid,int commissionTypec);

    /**
     * 分页查询用户获取佣金的记录
     * @param startPage
     * @return
     */
    List getCommRecordByOpenId(int startPage,String openId);

    //用户返佣的总金额
    Double getProxyCommMoney(String openId);

}
